package com.wlyuan.index.api.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.wlyuan.tools.fastjson.BigDecimalFormatter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author yuanjie
 */
@Data
public class OrderIndexSumVO implements Serializable {
    @ApiModelProperty("总数量")
    private Integer totalQuantity;

    @ApiModelProperty("总重量")
    @JSONField(format = "#0.0000", serializeUsing = BigDecimalFormatter.class)
    private BigDecimal totalWeight;

    @ApiModelProperty("总体积")
    @JSONField(format = "#0.0000", serializeUsing = BigDecimalFormatter.class)
    private BigDecimal totalVolume;

    @ApiModelProperty("总价值")
    @JSONField(format = "#0.00", serializeUsing = BigDecimalFormatter.class)
    private BigDecimal totalValue;

    private Integer size;
}